home *** CD-ROM | disk | FTP | other *** search
/ Enter 2005 October / enter-2005-10.iso / files / jedit42install.exe / {app} / jedit.jar / bsh / commands / object.bsh < prev    next >
Encoding:
Text File  |  2003-12-27  |  283 b   |  20 lines

  1. /**
  2.     Return an "empty" BeanShell object context which can be used to hold 
  3.     data items.  e.g. 
  4.     <p>
  5.     <pre>
  6.     myStuff = object();
  7.     myStuff.foo = 42;
  8.     myStuff.bar = "blah";
  9.     </pre>
  10.  
  11.     @method This object()
  12. */
  13.  
  14. bsh.help.object = "usage: object()";
  15.  
  16. object() { 
  17.     return this; 
  18. }
  19.  
  20.